package conf

import (
	"gitee.com/gcom/stockdock/comm"
	"gitee.com/gcom/stockdock/core/support"
	"go.uber.org/zap"
)

func init() {
	support.RegisterTracerCtxDecor(func(ctx support.TracerCtx) {
		ctx.Logger = comm.NewLogger(zap.Uint64("traceId", ctx.TraceId), zap.String("ip", comm.LocalIp))
	})
}
